【VBA研究】显示GIF动态图片 您所在的位置:网站首页 分享 AniGif控件的使用方法和经验显示网络Gif 【VBA研究】显示GIF动态图片

【VBA研究】显示GIF动态图片

2024-06-18 08:18| 来源: 网络整理| 查看: 265

【VBA研究】64位系统下无法用ScriptControl控件解析JSon数据

lzzzl: Option Explicit Private objHtml As Object Private objWin As Object Private Sub init() If objHtml Is Nothing Then Set objHtml = CreateObject("HTMLFile") Set objWin = objHtml.parentWindow End If End Sub 'eg set person = new clsScript '?person.parseAndGet("{name: ""zhang3"", age: 24}", "name") Public Sub parse(ByVal jsonStr As String) init '解析结果保存到脚本全局变量以备后用 objWin.execScript "window.x=" & jsonStr & ";" End Sub Public Function parseJsonAndGetProperty(ByVal jsonStr As String, ByVal nestedPropertyName As String) As String 'parseJsonAndGetProperty = objWin.Eval("window.x=" & jsonStr & ";window.x." & nestedPropertyName) parse jsonStr parseJsonAndGetProperty = getProperty(nestedPropertyName) End Function Public Function getProperty(ByVal nestedPropertyName As String) As String getProperty = objWin.Eval("window.x." & nestedPropertyName) End Function



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有